.permission-management {
  padding: 0;
}

.permission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 8px;
}

.permission-header h2 {
  margin: 0;
  color: #262626;
  font-size: 24px;
  font-weight: 600;
}

.permission-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.permission-actions .ant-input-search {
  max-width: 300px;
}

/* 表格样式 */
.permission-management .ant-table {
  border-radius: 8px;
  overflow: hidden;
}

.permission-management .ant-table-thead > tr > th {
  background-color: #fafafa;
  font-weight: 600;
  color: #262626;
  border-bottom: 2px solid #f0f0f0;
}

.permission-management .ant-table-tbody > tr:hover > td {
  background-color: #fafafa;
}

/* 标签样式 */
.permission-management .ant-tag {
  border-radius: 4px;
  font-weight: 500;
}

/* 开关样式 */
.permission-management .ant-switch {
  background-color: #ff4d4f;
}

.permission-management .ant-switch-checked {
  background-color: #52c41a;
}

/* 模态框样式 */
.permission-management .ant-modal-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 24px;
}

.permission-management .ant-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
}

.permission-management .ant-modal-body {
  padding: 24px;
}

.permission-management .ant-form-item {
  margin-bottom: 16px;
}

.permission-management .ant-form-item-label > label {
  font-weight: 500;
  color: #262626;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .permission-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .permission-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .permission-actions .ant-input-search {
    max-width: 200px;
  }
  
  .permission-management .ant-table {
    overflow-x: auto;
  }
  
  .permission-management .ant-table-thead > tr > th,
  .permission-management .ant-table-tbody > tr > td {
    white-space: nowrap;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.permission-management .ant-card {
  animation: fadeIn 0.3s ease-out;
}

.permission-management .ant-table {
  animation: fadeIn 0.4s ease-out;
}

/* 操作按钮样式 */
.permission-management .ant-btn-sm {
  font-size: 12px;
  padding: 0 8px;
  height: 24px;
}

/* 分割线样式 */
.permission-management .ant-divider {
  margin: 20px 0 !important;
  border-color: #f0f0f0 !important;
}

/* 搜索框聚焦效果 */
.permission-management .ant-input-search:focus-within {
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  border-color: #1890ff;
}

/* 操作按钮悬停效果 */
.permission-management .ant-btn-primary:not(:disabled):hover {
  background-color: #096dd9;
  border-color: #096dd9;
}

.permission-management .ant-btn-danger:not(:disabled):hover {
  background-color: #d9363e;
  border-color: #d9363e;
}

/* 表格分页样式 */
.permission-management .ant-pagination {
  margin: 24px 0 0 0;
  padding: 0 8px;
}

.permission-management .ant-pagination-total-text {
  color: #8c8c8c;
  font-size: 14px;
}

/* 空状态样式 */
.permission-management .ant-table-placeholder {
  padding: 48px 0;
  color: #8c8c8c;
}

.permission-management .ant-table-placeholder .anticon {
  font-size: 48px;
  color: #d9d9d9;
  margin-bottom: 16px;
}

/* 权限类型标签特殊样式 */
.permission-management .ant-tag-green {
  background-color: #f6ffed;
  color: #52c41a;
  border-color: #b7eb8f;
}

.permission-management .ant-tag-orange {
  background-color: #fff7e6;
  color: #fa8c16;
  border-color: #ffd591;
}

.permission-management .ant-tag-purple {
  background-color: #f9f0ff;
  color: #722ed1;
  border-color: #d3adf7;
}

/* 表单验证样式 */
.permission-management .ant-form-item-has-error .ant-input,
.permission-management .ant-form-item-has-error .ant-input:hover {
  border-color: #ff4d4f;
}

.permission-management .ant-form-item-has-error .ant-input:focus {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}

.permission-management .ant-form-item-explain-error {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
}